package com.qzuser.sendmessagebasic.server.mapper;

import com.qzuser.sendmessagebasic.server.binding.Binding;
import com.qzuser.sendmessagebasic.server.exchange.Exchange;
import com.qzuser.sendmessagebasic.server.queue.Queue;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MetaMapper {
    void createExchangeTable();

    void createQueueTable();

    void createBindingTable();

    void insertExchange(Exchange exchange);

    void deleteExchange(String exchangeName);

    Exchange getExchange();

    List<Exchange> getExchanges();

    void insertQueue(Queue queue);

    void deleteQueue(String queueName);

    List<Queue> getQueues();

    void insertBinding(Binding binding);

    void deleteBinding(Binding binding);

    List<Binding> getBindings();
}
